package com.github.binarywang.demo.wx.mp.service;

import com.github.binarywang.demo.wx.mp.beans.HaoZhu;
import com.github.binarywang.demo.wx.mp.dto.Result;

import java.util.List;

public interface Haozhuservice {
    //查看全部号主
    List<HaoZhu> getAllByrole(String role);
    //查看号主总数
    int countHZNumByrole(String role);
    //根据Name查看号主
    void selectByName(String Name);
    //注册号主
    Result registerHZ(HaoZhu haoZhu);
    //登录号主
    Result loginHZ(HaoZhu haoZhu);
    //删除号主
    void deleteHZById(String HaoZhuId);
    //更新号主
    void updateHZById(HaoZhu haoZhu);

    String findPswByName(String username);

    //通过haozhuid获取id
    Long getIdbyhaozhuid(String hao_zhu_id);
}
